<div [@flyIn]="'active'">
  <div class="wrapper-sm">
    <div class="panel panel-default m-b-n-xs" style="border-radius:5px">
      <div class="panel-body" style="font-size: 10px;padding:5px 20px; " >
        <div class="m-t-xs m-t-sm">
          <span>{{'devrepair.head.LEFT_TITLE1'|translate}}</span>
          <i class="fa fa-angle-right"></i>
          <span>{{'devrepair.head.LEFT_TITLE3'|translate}} </span>
        </div>
      </div>
    </div>
  </div>
  <div class="wrapper-sm">
    <div class="panel panel-default m-t-n-xs m-b-n-xs" style="border-radius:5px;">

      <div class="panel panel-default" style="margin-bottom:-5px;border-radius:5px">
        <div class="panel-body" style="font-size: 10px;padding:5px 20px; " >
          <form class="form-inline row ">
            <app-select (search)="oo=$event;getData()"></app-select>
          </form>
        </div>
      </div>
    </div>
  </div>

  <div class="wrapper-sm" style="font-size:12px">
    <div class="panel panel-default" style="border-radius:5px">
      <div class="panel-body" >
        <table  class="table table-hover table-striped m-b-none default footable " style="font-size: 12px;">
          <thead>
          <tr>
            <th  style="width:10%">{{'devrepair.table_header.WORK_ORDER'|translate}}</th>
            <th  style="width:10%">{{'devrepair.table_header.DEVNO'|translate}}</th>
            <th  style="width:10%">{{'devrepair.table_header.DEVNAME'|translate}}</th>
            <th  style="width:15%">{{'devrepair.table_header.ALARMTIME'|translate}}</th>
            <th  style="width:10%">{{'devrepair.table_header.ALARMTYPE'|translate}}</th>
            <th  style="width:15%">{{'devrepair.table_header.ALARMSTATUS'|translate}}</th>
            <th  style="width:10%">{{'devrepair.table_header.ORDERSTATUS'|translate}}</th>
          </tr>
          </thead>
          <tbody>
          <tr *ngFor="let item of data">
            <td>
              <a [routerLink]="['recorddetail',item.id]">
                <span style="color: blue">{{item.id}}</span>
              </a>
            </td>
            <td>
              <a [routerLink]="['../../../../archives/info/deviceinfo','none']">
                <span style="color: blue">{{item.mac}}</span>
              </a>
            </td>
            <td>{{item.device_name}}</td>
            <td>{{item.created}}</td>
            <td *ngIf="item.type==0">自动报警</td>
            <td *ngIf="item.type==1">手动报警</td>
            <td>
              <a style="margin-right:5px;color:#56abe4" *ngIf="item.step>=1"><i class="icon iconfont icon-yijie" tooltip="{{tool.yijiejingTooltip}}"></i></a>
              <a style="margin-right:5px;color:gray" *ngIf="item.step<1"><i class="icon iconfont icon-yijie" tooltip="{{tool.yijiejing1Tooltip}}"></i></a>
              <a style="margin-right:5px;color:#56abe4" *ngIf="item.step>=2&&item.daochang==1"><i class="icon iconfont icon-shuniu1" tooltip="{{tool.daochangTooltip}}"></i></a>
              <a style="margin-right:5px;color:orange" *ngIf="item.step>=2&&item.daochang==0"><i class="icon iconfont icon-shuniu1" tooltip="{{tool.daochang1Tooltip}}"></i></a>
              <a style="margin-right:5px;color:gray" *ngIf="item.step<2"><i class="icon iconfont icon-shuniu1" tooltip="{{tool.daochang2Tooltip}}"></i></a>
              <a style="color:#56abe4" *ngIf="item.step>=3"><i class="icon iconfont icon-yiqueren" tooltip="{{tool.yiquerenTooltip}}"></i></a>
              <a style="color:gray" *ngIf="item.step<3"><i class="icon iconfont icon-yiqueren" tooltip="{{tool.yiqueren1Tooltip}}"></i></a>
            </td>
            <td *ngIf="item.status==1">报警</td>
            <td *ngIf="item.status==2">接警</td>
            <td *ngIf="item.status==3">到场</td>
            <td *ngIf="item.status==4">完工</td>
            <td *ngIf="item.status==5">恢复</td>
            <td *ngIf="item.status==6">确认</td>
            <td *ngIf="item.status==7">自动确认</td>
            <td *ngIf="item.status==8">撤销</td>
          </tr>
          </tbody>
        </table>


        <app-pagination [pageModel]="pageModel" (pageChanged)="page=$event;getData()"></app-pagination>

      </div>
    </div>
  </div>
</div>
